package cz.cvut.manatee.shared.concordance;

import java.io.Serializable;

public class CollectedFilterParameters extends CollectedParameters implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private CollectedSimpleOrCqlParameters simpleOrCqlParam;
	private boolean positive;
	private boolean first;
	private int findFrom;
	private int findTo;
	

	public CollectedFilterParameters(){
		
	}

	public CollectedFilterParameters(boolean positive, boolean first, int findFrom, int findTo, CollectedSimpleOrCqlParameters sorc){
		this.positive = positive;
		this.first = first;
		this.findFrom = findFrom;
		this.findTo = findTo;
		this.simpleOrCqlParam = sorc;
	}

	public boolean isPositive(){
		return positive;
	}

	public boolean isFirst(){
		return first;
	}

	public CollectedSimpleOrCqlParameters getSimplOrCqlParameters(){
		return simpleOrCqlParam;
	}

	public int getFrom(){
		return findFrom;
	}

	public int getTo(){
		return findTo;
	}
	
}
